import { createApp } from 'vue'
import router from './router/index'
import App from './App.vue'
import {createPinia} from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import './styles/element-ui.scss'
import dayjs from 'dayjs';
// 将 dayjs 注册为全局变量
window.dayjs = dayjs;
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
const app = createApp(App)
app.use(router)
app.use(pinia)
app.mount('#app')
